package org.tnaggs.project.model;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class Team {

	private int teamID;
	private int leagueID;
	private int contactID;
	private String name;
	
	public String getEncodedName() {
		String results = "";
		try {
			results = URLEncoder.encode(name, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			System.err.println("Error encoding team name " + e);
		}
		return results;
	}
	
	public int getTeamID() {
		return teamID;
	}
	
	public void setTeamID(int teamID) {
		this.teamID = teamID;
	}
	
	public int getLeagueID() {
		return leagueID;
	}
	
	public void setLeagueID(int leagueID) {
		this.leagueID = leagueID;
	}
	
	public int getContactID() {
		return contactID;
	}
	
	public void setContactID(int contactID) {
		this.contactID = contactID;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
}
